﻿#pragma once

#include <DockWidgetInterface.h>
#include "IssuesBrowserExport.h"

namespace Domy {

class IssuesToolBar;
class IssuesBrowser;

/**
 * @brief The IssuesBrowserWindow class
 * @note  消息窗口
 */
class ISSUESBROWSER_EXPORT IssuesBrowserWindow : public DockWidgetInterface
{
    Q_OBJECT

public:
    explicit IssuesBrowserWindow(ActionEnableCtrl ctrl, QWidget *parent);
    ~IssuesBrowserWindow();

    virtual QDockWidget *createDockWidget() override;

private slots:
    void slotOnIssuesActionTriggered(QAction *action);
    void slotOnAppendIssues(const Issues &issues);

private:
    IssuesToolBar *m_issues_bar;
    IssuesBrowser *m_issues_browser;
};

} // namespace Domy
